<template>
  <div>
    <h2>Tab</h2>
    <p>{{ count }}</p>
    <p>{{ num }}</p>
    <button></button>
  </div>
</template>

<script>
export default {
  name: "Tab",
  data() {
    return {
      count: 7,
    };
  },
  methods: {
    add() {
      this.num++;
    },
  },
  mounted() {
    this.$emit("numData", this.count);
  },
};
</script>

<style>
</style>